//
//  KDSearchHistoryCell.m
//  PublicSentimentMonitorSystem
//
//  Created by 魏强 on 16/1/7.
//  Copyright © 2016年 魏强. All rights reserved.
//

#import "KDSearchHistoryCell.h"
#import "KDSearchHistory.h"
@interface KDSearchHistoryCell ()
@property (weak, nonatomic) IBOutlet UILabel *titleLB;

@end
@implementation KDSearchHistoryCell

- (void)awakeFromNib {
    // Initialization code
}
#pragma mark - 懒加载区

#pragma mark - 板块布置区
+ (instancetype)cellWithTableView:(UITableView *)tableView{
    static NSString *cellId =@"KDSearchHistoryCell";
    
    UINib *xib = [UINib nibWithNibName:@"KDSearchHistoryCell" bundle:nil];
    [tableView registerNib:xib forCellReuseIdentifier:cellId];
    KDSearchHistoryCell *cell =[tableView dequeueReusableCellWithIdentifier:cellId];
    
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
    //    cell.numLb.layer.cornerRadius = 4.0;
    return cell;
}
- (void)setModel:(KDSearchHistory *)model{
    _model = model;
    self.titleLB.text = model.searchText;
}
#pragma mark - 事件点击区
- (IBAction)deleteBtnClick:(UIButton *)sender {
    if (_delegate && [_delegate respondsToSelector:@selector(KDSearchHistoryCell:WithHistory:)]) {
        [_delegate KDSearchHistoryCell:self WithHistory:self.model];
    }
}

#pragma mark - 网络请求区

#pragma mark - 通知接收区
@end
